Nevron Open Vision Documentation
Nevron.Nov.DataStructures Namespace / NList<T> Class / CastAll<TTarget> Method


In This Topic
    CastAll<TTarget> Method (NList<T>)
    In This Topic
    Casts all items in this list to the specified target type. Returns a new list with the casted objects
    Syntax
    'Declaration
     
    
    Public Function CastAll(Of TTarget As Class)() As NList(Of TTarget)
    'Usage
     
    
    Dim instance As NList(Of T)
    Dim value As NList(Of TTarget)
     
    value = instance.CastAll(Of TTarget)()
    public NList<TTarget> CastAll<TTarget>()
    where TTarget: class

    Type Parameters

    TTarget
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also